package com.openbravo.data.loader;

import com.openbravo.basic.BasicException;

public class SerializerReadClass
  implements SerializerRead
{
  private Class m_clazz;

  public SerializerReadClass(Class paramClass)
  {
    this.m_clazz = paramClass;
  }

  public Object readValues(DataRead paramDataRead)
    throws BasicException
  {
    try
    {
      SerializableRead localSerializableRead = (SerializableRead)this.m_clazz.newInstance();
      localSerializableRead.readValues(paramDataRead);
      return localSerializableRead;
    }
    catch (InstantiationException localInstantiationException)
    {
      return null;
    }
    catch (IllegalAccessException localIllegalAccessException)
    {
      return null;
    }
    catch (ClassCastException localClassCastException)
    {
    }
    return null;
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.data.loader.SerializerReadClass
 * JD-Core Version:    0.6.0
 */